package ne.aishuyuan.video.netty.controller;

import ne.aishuyuan.video.netty.client.NettyClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author clj
 * @date 2021/11/5
 * @since 2021.1.0
 */
@RestController
@RequestMapping("/test")
public class TestController {
  @Autowired
  private NettyClient nettyClient;

  @GetMapping("/test")
  public  String test() {
//    nettyClient.sendMsg(JSON.toJSONString();
    return "ok";
  }
}
